<?php
class ChuyenNganhController extends AppController {
	var $helpers = array('Html', 'Form');
	
	public function index () {
		
	}
	
	public function add() {
		// debug($this->request);
	    if ($this->request->is('post')) {
	        if ($this->Auth->login()) {
	            return $this->redirect($this->Auth->redirect());
	        } else {
	            $this->Session->setFlash(__('Username or password is incorrect'), 'default', array(), 'auth');
	        }
	    }
	}
	
	public function edit() {
 	   $this->redirect($this->Auth->logout());
	}
	
	public function delete() {
	
	}
	
	public function addGroup() {
	
	}
		
	public function editGroup() {
	
	}
	
	public function deleteGroup() {
	
	}
}
